package com.nanshenycd.util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Timeout {
    public Date now() throws ParseException {
        Date today=new Date();
        SimpleDateFormat formatDate=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        String time=formatDate.format(today);
        java.util.Date timeDate = formatDate.parse(time);
        return timeDate;
    }
}
